package cn.liontalk.DecoratorPattern;

import cn.liontalk.DecoratorPattern.JayZhou;
import cn.liontalk.DecoratorPattern.SuperStar;

/**
 * Created by ZhouZhe on 2018/5/17.
 */
public class AgentA implements SuperStar {


    /**
     * 制定经纪人让明星唱歌 演戏
     */
    private JayZhou jayZhou;


    public AgentA(JayZhou jayZhou){
        this.jayZhou = jayZhou;
    }


    public void joinMeeting(){
        System.out.println("经纪人帮明星开演唱会!");
    }

    public void actingPlay(){
        System.out.println("经济人帮明星做巡演!");
    }

    @Override
    public void sing() {
        /**
         * 让明星开唱歌
         */
        jayZhou.sing();

        /**
         * 让明星开演唱会
         */
        joinMeeting();
    }

    @Override
    public void acting() {
        jayZhou.acting();
        actingPlay();
    }
}
